package dai.core.base

object TextureCache {
    val  textureMaps = HashMap<String,Texture>()

    fun getTexture(path:String):Texture{
        var texture = textureMaps[path]
        if (texture == null){
            texture = Texture(path)
            textureMaps[path] = texture
        }
        return texture
    }
}